function reverse(str) {
    return str.split(" ").map((x, index) => {
        return index % 2 != 0 ? Array.prototype.reverse.call(x.split('')).join('') : x
    }).join(" ")
}
console.log(reverse("I really don't like reversing strings!"))

let arr = [... Array(2)].map((x,i)=>i+1)
console.log(arr);